Skip to main content

Class: ContentApi

ContentApi - object-oriented interface

Export

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new ContentApi(configuration?, basePath?, fetch?)

Parameters

NameTypeDefault value
configuration?Configurationundefined
basePathstringBASE_PATH
fetchFetchAPIportableFetch

Inherited from

BaseAPI.constructor

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:60

Properties

basePath

Protected basePath: string = BASE_PATH

Inherited from

BaseAPI.basePath

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:60


configuration

Protected configuration: Configuration

Inherited from

BaseAPI.configuration

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:58


fetch

Protected fetch: FetchAPI = portableFetch

Inherited from

BaseAPI.fetch

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:60

Methods

contentAddCarPost

contentAddCarPost(body, ignoreDupes?, filename?, options?): Promise<Response>

This endpoint is used to add a car object to the network. The object can be a file or a directory.

Summary

Add Car object

Throws

Memberof

ContentApi

Parameters

NameTypeDescription
bodystringCar
ignoreDupes?stringIgnore Dupes
filename?stringFilename
options?anyOverride http request option.

Returns

Promise<Response>

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:3291


contentAddIpfsPost

contentAddIpfsPost(body, ignoreDupes?, options?): Promise<Response>

This endpoint is used to add an IPFS object to the network. The object can be a file or a directory.

Summary

Add IPFS object

Throws

Memberof

ContentApi

Parameters

NameTypeDescription
bodyUtilContentAddIpfsBodyIPFS Body
ignoreDupes?stringIgnore Dupes
options?anyOverride http request option.

Returns

Promise<Response>

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:3304


contentAddPost

contentAddPost(data, filename?, coluuid?, replication?, ignoreDupes?, lazyProvide?, dir?, options?): Promise<UtilContentAddResponse>

This endpoint is used to upload new content.

Summary

Add new content

Throws

Memberof

ContentApi

Parameters

NameTypeDescription
dataanyFile to upload
filename?stringFilenam to use for upload
coluuid?stringCollection UUID
replication?numberReplication value
ignoreDupes?stringIgnore Dupes true/false
lazyProvide?stringLazy Provide true/false
dir?stringDirectory
options?anyOverride http request option.

Returns

Promise<UtilContentAddResponse>

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:3322


contentAggregatedContentGet

contentAggregatedContentGet(content, options?): Promise<string>

This endpoint returns aggregated content stats

Summary

Get aggregated content stats

Throws

Memberof

ContentApi

Parameters

NameTypeDescription
contentstringContent ID
options?anyOverride http request option.

Returns

Promise<string>

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:3334


contentAllDealsGet

contentAllDealsGet(begin, duration, all, options?): Promise<Response>

This endpoint is used to get all deals for a user

Summary

Get all deals for a user

Throws

Memberof

ContentApi

Parameters

NameTypeDescription
beginstringBegin
durationstringDuration
allstringAll
options?anyOverride http request option.

Returns

Promise<Response>

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:3348


contentBwUsageContentGet

contentBwUsageContentGet(content, options?): Promise<Response>

This endpoint returns content bandwidth

Summary

Get content bandwidth

Throws

Memberof

ContentApi

Parameters

NameTypeDescription
contentstringContent ID
options?anyOverride http request option.

Returns

Promise<Response>

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:3360


contentCreatePost

contentCreatePost(req, ignoreDupes?, options?): Promise<Response>

This endpoint adds a new content

Summary

Add a new content

Throws

Memberof

ContentApi

Parameters

NameTypeDescription
reqUtilContentCreateBodyContent
ignoreDupes?stringIgnore Dupes
options?anyOverride http request option.

Returns

Promise<Response>

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:3373


contentDealsGet

contentDealsGet(limit?, offset?, options?): Promise<Response>

This endpoint lists all content with deals

Summary

Content with deals

Throws

Memberof

ContentApi

Parameters

NameTypeDescription
limit?numberLimit
offset?numberOffset
options?anyOverride http request option.

Returns

Promise<Response>

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:3386


contentEnsureReplicationDatacidGet

contentEnsureReplicationDatacidGet(datacid, options?): Promise<Response>

This endpoint ensures that the content is replicated to the specified number of providers

Summary

Ensure Replication

Throws

Memberof

ContentApi

Parameters

NameTypeDescription
datacidstringData CID
options?anyOverride http request option.

Returns

Promise<Response>

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:3398


contentFailuresContentGet

contentFailuresContentGet(content, options?): Promise<string>

This endpoint returns all failures for a content

Summary

List all failures for a content

Throws

Memberof

ContentApi

Parameters

NameTypeDescription
contentstringContent ID
options?anyOverride http request option.

Returns

Promise<string>

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:3410


contentIdGet

contentIdGet(id, options?): Promise<Response>

This endpoint returns a content by its ID

Summary

Content

Throws

Memberof

ContentApi

Parameters

NameTypeDescription
idnumberContent ID
options?anyOverride http request option.

Returns

Promise<Response>

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:3422


contentImportdealPost

contentImportdealPost(body, options?): Promise<Response>

This endpoint imports a deal into the shuttle.

Summary

Import a deal

Throws

Memberof

ContentApi

Parameters

NameTypeDescription
bodyMainImportDealBodyImport a deal
options?anyOverride http request option.

Returns

Promise<Response>

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:3434


contentListGet

contentListGet(options?): Promise<string[]>

This endpoint lists all content

Summary

List all pinned content

Throws

Memberof

ContentApi

Parameters

NameTypeDescription
options?anyOverride http request option.

Returns

Promise<string[]>

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:3445


contentReadContGet

contentReadContGet(cont, options?): Promise<Response>

This endpoint reads content from the blockstore

Summary

Read content

Throws

Memberof

ContentApi

Parameters

NameTypeDescription
contstringCID
options?anyOverride http request option.

Returns

Promise<Response>

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:3457


contentStagingZonesGet

contentStagingZonesGet(options?): Promise<Response>

This endpoint is used to get staging zone for user.

Summary

Get staging zone for user

Throws

Memberof

ContentApi

Parameters

NameTypeDescription
options?anyOverride http request option.

Returns

Promise<Response>

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:3468


contentStatsGet

contentStatsGet(limit, offset, options?): Promise<Response>

This endpoint is used to get content statistics. Every content stored in the network (estuary) is tracked by a unique ID which can be used to get information about the content. This endpoint will allow the consumer to get the collected stats of a conten

Summary

Get content statistics

Throws

Memberof

ContentApi

Parameters

NameTypeDescription
limitstringlimit
offsetstringoffset
options?anyOverride http request option.

Returns

Promise<Response>

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:3481


contentStatusIdGet

contentStatusIdGet(id, options?): Promise<Response>

This endpoint returns the status of a content

Summary

Content Status

Throws

Memberof

ContentApi

Parameters

NameTypeDescription
idnumberContent ID
options?anyOverride http request option.

Returns

Promise<Response>

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:3493